//
//  MyHttpProcessor.h
//  iOS-CtrlV
//
//  Created by 龚 杰 on 12-12-26.
//  Copyright (c) 2012年 Wang Li. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"
@class MyHttpProcessor;
@class UserInformationModel;
@class AlbumModel;

@protocol MyHttpProcessorDelegate <NSObject>
@optional
- (void)OutPersonalInformationData:(UserInformationModel*)_data;
- (void)OutPostListData:(NSMutableArray*)_data;
- (void)OutAlbumListData:(NSMutableArray*)_data;
- (void)OutGoodListData:(NSMutableArray*)_data;
- (void)OutFansLisData:(NSMutableArray*)_data;
- (void)OutAttentionListData:(NSMutableArray*)_data;
- (void)OutAlbumSearchListData:(NSMutableArray*)_data;
- (void)OutAlbumCreate:(AlbumModel*)_data;
- (void)OutFollow:(NSString*)_data;
- (void)OutUpdataName:(NSString*)_data;
- (void)OutUpdataHaed:(NSString*)_data;
- (void)OutHairBlogResults:(NSString*)dic;
- (void)OUtTurnminingBlogResults:(NSString*)dic;
- (void)OutInsurgentblog:(NSDictionary*)dic;
- (void)OutCInsurgentblog:(NSDictionary*)dic;
- (void)OurErrer:(NSDictionary*)dic;
@end

@interface MyHttpProcessor : NSObject<ASIHTTPRequestDelegate>
{
   
}
@property(nonatomic,assign)id<MyHttpProcessorDelegate>delegate;

+ (MyHttpProcessor*)sharedManager;

- (void)RequestPersonalInformationGet:(NSInteger)_userId ID:(NSInteger)_Id;
- (void)RequestPersonalInformationPost:(NSInteger)_userId ID:(NSInteger)_Id;
- (void)AnalyticalPersonalInformation:(ASIHTTPRequest*)request;

//- (void)RequestPostListGet:(NSInteger)_userId ID:(NSString*)_Id
//                     start:(NSInteger)_start limit:(NSInteger)_limit;
//- (void)RequestPostListPost:(NSInteger)_userId ID:(NSString*)_Id
//                      start:(NSInteger)_start limit:(NSInteger)_limit;
//- (void)AnalyticalPostList:(ASIHTTPRequest*)request;


- (void)RequestAlbumListGet:(NSInteger)_userId ID:(NSString*)_Id
                      start:(NSInteger)_start limit:(NSInteger)_limit;
- (void)RequestAlbumListPost:(NSInteger)_userId ID:(NSString*)_Id
                       start:(NSInteger)_start limit:(NSInteger)_limit;
- (void)AnalyticalAlbumList:(ASIHTTPRequest*)request;


//- (void)RequestGoodListGet:(NSInteger)_userId ID:(NSString*)_Id
//                     start:(NSInteger)_start limit:(NSInteger)_limit;
//- (void)RequestGoodListPost:(NSInteger)_userId ID:(NSString*)_Id
//                      start:(NSInteger)_start limit:(NSInteger)_limit;
//- (void)AnalyticalGoodList:(ASIHTTPRequest*)request;


- (void)RequestFansListGet:(NSInteger)_userId ID:(NSString*)_Id
                     start:(NSInteger)_start limit:(NSInteger)_limit;
- (void)RequestFansListPost:(NSInteger)_userId ID:(NSString*)_Id
                      start:(NSInteger)_start limit:(NSInteger)_limit;
- (void)AnalyticalFansList:(ASIHTTPRequest*)request;


- (void)RequestAttentionListGet:(NSInteger)_userId ID:(NSString*)_Id
                          start:(NSInteger)_start limit:(NSInteger)_limit;
- (void)RequestAttentionListPost:(NSInteger)_userId ID:(NSString*)_Id
                           start:(NSInteger)_start limit:(NSInteger)_limit;
- (void)AnalyticalAttentionList:(ASIHTTPRequest*)request;

- (void)RequestAlbumSearchListGet:(NSString*)_userId;
- (void)RequestAlbumSearchListPost:(NSString*)_userId;
- (void)AnalyticalAlbumSearchList:(ASIHTTPRequest*)request;

- (void)RequestAlbumCreateGet:(NSString*)_userId title:(NSString*)_title;
- (void)RequestAlbumCreatePost:(NSString*)_userId title:(NSString*)_title;
- (void)AnalyticalAlbumCreate:(ASIHTTPRequest*)request;

- (void)RequestFollowGet:(NSString*)user_id targe:(NSString*)target_user_id type:(NSInteger)_type;
- (void)RequestFollowPost:(NSString*)user_id targe:(NSString*)target_user_id type:(NSInteger)_type;
- (void)AnalyticalFollow:(ASIHTTPRequest*)request;



- (void)RequestHairBlogPost:(NSString*)user_id description:(NSString*)_description collect_id:(NSString*)_collect_id
                       sina:(NSInteger)sina_to tencent:(NSInteger)tencent_to imagepath:(NSString*)_imagepath;
- (void)AnalyticalHairBlog:(ASIHTTPRequest*)request;

- (void)RequestTurnminingBlogPost:(NSString*)user_id description:(NSString*)_description collect_id:(NSString*)_collect_id
                       sina:(NSInteger)sina_to tencent:(NSInteger)tencent_to blogid:(NSInteger)blogid;
- (void)RequestTurnminingBlogGet:(NSString*)user_id description:(NSString*)_description collect_id:(NSString*)_collect_id
                            sina:(NSInteger)sina_to tencent:(NSInteger)tencent_to blogid:(NSInteger)blogid;
- (void)AnalyticalTurnminingBlog:(ASIHTTPRequest*)request;

- (void)RequestUesrNameGet:(NSString*)_userId private_code:(NSString*)code name:(NSString*)name;
- (void)RequestUesrNamePost:(NSString*)_userId private_code:(NSString*)code name:(NSString*)name;
- (void)AnalyticalUesrName:(ASIHTTPRequest*)request;

- (void)RequestUesrHaedPost:(NSString*)_userId private_code:(NSString*)code haed:(NSString*)haedpath;

- (void)RequestInsurgentblog:(NSString *)_userId target:(NSString *)_target;
- (void)AnalyticalInsurgentblog:(ASIHTTPRequest*)request;

- (void)RequestCancelInsurgentblog:(NSString *)_userId target:(NSString *)_target;
- (void)AnalyticalCancelInsurgentblog:(ASIHTTPRequest*)request;
@end
